package com.mm.domain.taxi;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.mm.util.result.DBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户打车地址表
 * </p>
 *
 * @author JueDream
 * @since 2021-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_taxi_address_info")
@ApiModel(value="DTaxiAddressInfo对象", description="用户打车地址表")
public class DTaxiAddressInfo extends DBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "打车地址编号")
    @TableId(value = "taxi_id", type = IdType.AUTO)
    private Integer taxiId;

    @ApiModelProperty(value = "出发地址")
    @TableField("taxi_first")
    private String taxiFirst;

    @ApiModelProperty(value = "出发地址详细")
    @TableField("taxi_first_detail")
    private String taxiFirstDetail;

    @ApiModelProperty(value = "出发地址坐标(微信location类型为gcj02;返回可用于wx.openLocation的坐标;经度,纬度)")
    @TableField("taxi_first_xyz")
    private String taxiFirstXyz;

    @ApiModelProperty(value = "目标地址")
    @TableField("taxi_last")
    private String taxiLast;

    @ApiModelProperty(value = "目标地址详细")
    @TableField("taxi_last_detail")
    private String taxiLastDetail;

    @ApiModelProperty(value = "目标地址坐标(微信location类型为gcj02;返回可用于wx.openLocation的坐标;经度,纬度)")
    @TableField("taxi_last_xyz")
    private String taxiLastXyz;

    @ApiModelProperty(value = "费用(以分为单位)")
    @TableField("taxi_costs")
    private Integer taxiCosts;

    @ApiModelProperty(value = "座位数量")
    @TableField("taxi_seat_num")
    private Integer taxiSeatNum;

    public DTaxiAddressInfo(){}

    @Builder

    public DTaxiAddressInfo(Integer taxiId, String taxiFirst, String taxiFirstDetail, String taxiFirstXyz, String taxiLast, String taxiLastDetail, String taxiLastXyz, Integer taxiCosts, Integer taxiSeatNum) {
        this.taxiId = taxiId;
        this.taxiFirst = taxiFirst;
        this.taxiFirstDetail = taxiFirstDetail;
        this.taxiFirstXyz = taxiFirstXyz;
        this.taxiLast = taxiLast;
        this.taxiLastDetail = taxiLastDetail;
        this.taxiLastXyz = taxiLastXyz;
        this.taxiCosts = taxiCosts;
        this.taxiSeatNum = taxiSeatNum;
    }
}
